<?php 
if (!defined('e107_INIT')) { exit; }
require_once(e_HANDLER.'shortcode_handler.php');
global $tp;
$navigator_shortcodes = $tp->e_sc->parse_scbatch(__FILE__);

/*

SC_BEGIN E107SHOP_NAV
    global $shop_settings, $category_id;
    $item = getcachedvars('e107shopnavigationlist');
    $item = array_reverse($item);
    $items = count($item);
    if ($items == 1) {
        if ($parm == 'category') return lan_global_nav_to."<a href='".$shop_settings['path']."index.php'>".lan_global_mainpage."</a> --> <span style='color: #ec5800; font-weight: bold;'>".$item[0]."</span>";
        elseif ($parm == 'product') return lan_global_nav_to."<a href='".$shop_settings['path']."index.php'>".lan_global_mainpage."</a> --> <a href='".$shop_settings['path']."products.php?cat=".$category_id."'>".$item[0]."</a>";
    }        
    $text = lan_global_nav_to."<a href='".$shop_settings['path']."index.php'>".lan_global_mainpage."</a>";
    $counter = 0;
    while ($counter < ($items - 1)) {
        $text .= " --> <a href='".$shop_settings['path']."index.php?cat=".$item[$counter+1]."'>".$item[$counter]."</a>";
        $counter += 2;
    }
    if ($parm == 'category') $text .= " --> <span style='color: #ec5800; font-weight: bold;'>".$item[$counter]."</span>";
    elseif($parm == 'product') $text .= " --> <a href='".$shop_settings['path']."products.php?cat=".$category_id."'>".$item[$counter]."</a>";
    return $text;
SC_END

*/
